package comm.data;


import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class PuhuiPackageData implements Serializable {

    //设备ID
    public String dvo;

    //命令码
    public int commandCode;

    //数据域长度
    public int finalDataLength;


    //数据域（前32个字节是16个通道的实时数据内容，后32个字节是继电器状态）
    public List<Integer> data;

    public List<Integer> relayStatus;


    /**
     * 数据解析时间
     */
    public Date pte;

    /**
     * Topic标识
     */
    public String tpc;


    public String getDvo() {
        return dvo;
    }

    public void setDvo(String dvo) {
        this.dvo = dvo;
    }

    public int getCommandCode() {
        return commandCode;
    }

    public void setCommandCode(int commandCode) {
        this.commandCode = commandCode;
    }

    public int getFinalDataLength() {
        return finalDataLength;
    }

    public void setFinalDataLength(int finalDataLength) {
        this.finalDataLength = finalDataLength;
    }

    public List<Integer> getData() {
        return data;
    }

    public void setData(List<Integer> data) {
        this.data = data;
    }

    public List<Integer> getRelayStatus() {
        return relayStatus;
    }

    public void setRelayStatus(List<Integer> relayStatus) {
        this.relayStatus = relayStatus;
    }

    public Date getPte() {
        return pte;
    }

    public void setPte(Date pte) {
        this.pte = pte;
    }

    public String getTpc() {
        return tpc;
    }

    public void setTpc(String tpc) {
        this.tpc = tpc;
    }

}
